/*
 * @Author: 张小平
 * @Date:   2025-05-01 
 * @Email:  qqshuqian@163.com 
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import website  from '@/framework-core/config/website';
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "#",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
    grid: window.isMobile,
    gridSpan: 24,
    searchEnter:true,
  "column": [
        {
      "type": "input",
      "label": "图片KEY",
      "prop": "code",
        "rules": [{
            required: true,
            message: '图片KEY不能为空',
            trigger: 'blur'
        }],
        'search': true,
      "span": 12
    }
            ,
        {
      "type": "input",
      "label": "图片名称",
      "prop": "name",
        "rules": [{
            required: true,
            message: '图片名称不能为空',
            trigger: 'blur'
        }],
        'search': true,
      "span": 12
    },
      {
          label: "图片",
          prop: "picture",
          dataType: 'string',
          type: 'img',
          addDisplay: false,
          editDisplay: false
      },

      {
          hide: true,
          label: '附件图片',
          prop: 'pictureUrl',
          type: 'upload',
          loadText: '附件上传中，请稍等',
          span: 24,
          listType: 'picture-img',
          limit: 1,
           accept: 'image/png, image/jpeg',
          propsHttp: {
              url: 'url',
              name: 'name',
              res: 'data.data'
          },
          tip: '上传同步至文件服务器',
          action:  website.baseUrl+"/api/sys/file/upload"
      }



  ]
}
